import http from '../common/http'

//解绑
export const codeUnbound = (params) => {
  const url = `codeController/unbound`
  return http.post(url,
    params
  )
}

//授权
export const codeBound = (params) => {
  const url = `codeController/bound`
  return http.post(url,
    params
  )
}

//刷新授权信息
export const flushCode = (params) => {
  const url = `codeController/flushCode`
  return http.get(url)
}
